using DataDynamics.ActiveReports.Document;
using DataDynamics.ActiveReports.Viewer;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using TVSBH.func;
using TVSBH.reports;
namespace TVSGPP.func
{
	public class frmBookSellNotBillView : Form
	{
		private IContainer components = null;
		private Viewer viewer1;
		public string month = "";
		public string objectName = "";
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBookSellNotBillView));
			this.viewer1 = new Viewer();
			base.SuspendLayout();
			this.viewer1.BackColor = SystemColors.Control;
			this.viewer1.Dock = DockStyle.Fill;
			this.viewer1.Document = new Document("ARNet Document");
			this.viewer1.Location = new Point(0, 0);
			this.viewer1.Name = "viewer1";
			this.viewer1.ReportViewer.CurrentPage = 0;
			this.viewer1.ReportViewer.MultiplePageCols = 3;
			this.viewer1.ReportViewer.MultiplePageRows = 2;
			this.viewer1.ReportViewer.ViewType = ViewType.Normal;
			this.viewer1.Size = new Size(884, 562);
			this.viewer1.TabIndex = 1;
			this.viewer1.TableOfContents.Text = "Table Of Contents";
			this.viewer1.TableOfContents.Width = 200;
			this.viewer1.TabTitleLength = 35;
			this.viewer1.Toolbar.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(884, 562);
			base.Controls.Add(this.viewer1);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmBookSellNotBillView";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "SỔ BÁN THUỐC KHÔNG THEO ĐƠN";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.frmBookTemHumPriview_Load);
			base.KeyDown += new KeyEventHandler(this.frmBookSellNotBillView_KeyDown);
			base.ResumeLayout(false);
		}
		public frmBookSellNotBillView()
		{
			this.InitializeComponent();
		}
		private void frmBookTemHumPriview_Load(object sender, EventArgs e)
		{
			string text = this.objectName;
			switch (text)
			{
			case "BillWithDoctor":
			{
				this.Text = "BẢNG KÊ ĐƠN THUỐC CỦA BÁC SĨ THEO LOẠI THUỐC";
				frmBillWithDoctorPrint frmBillWithDoctorPrint = new frmBillWithDoctorPrint();
				this.viewer1.Document = frmBillWithDoctorPrint.Document;
				frmBillWithDoctorPrint.Run();
				return;
			}
			case "TicketBillInput":
			{
				this.Text = "BẢNG KÊ HOÁ ĐƠN, CHỨNG TỪ HÀNG HOÁ, DỊCH VỤ MUA VÀO";
				frmTicketBillInput frmTicketBillInput = new frmTicketBillInput();
				this.viewer1.Document = frmTicketBillInput.Document;
				frmTicketBillInput.Run();
				return;
			}
			case "BookSideEffects1":
			{
				this.Text = "SỔ THEO DÕI TÁC DỤNG PHỤ CỦA THUỐC";
				frmBookSideEffects1Print frmBookSideEffects1Print = new frmBookSideEffects1Print();
				this.viewer1.Document = frmBookSideEffects1Print.Document;
				frmBookSideEffects1Print.Run();
				return;
			}
			case "TracePatients1Print":
			{
				this.Text = "SỔ THEO DÕI THÔNG TIN BỆNH NHÂN";
				frmTracePatients1Print frmTracePatients1Print = new frmTracePatients1Print();
				this.viewer1.Document = frmTracePatients1Print.Document;
				frmTracePatients1Print.Run();
				return;
			}
			case "TicketBillOutput":
			{
				this.Text = "BẢNG KÊ HOÁ ĐƠN, CHỨNG TỪ HÀNG HOÁ, DỊCH VỤ BÁN RA";
				frmTicketBillOutput frmTicketBillOutput = new frmTicketBillOutput();
				this.viewer1.Document = frmTicketBillOutput.Document;
				frmTicketBillOutput.Run();
				return;
			}
			case "BookInput":
			{
				this.Text = "SỔ NHẬP THUỐC";
				frmBookInputPrint frmBookInputPrint = new frmBookInputPrint();
				this.viewer1.Document = frmBookInputPrint.Document;
				frmBookInputPrint.Run();
				return;
			}
			case "BookCleaningPharmacies":
			{
				this.Text = "SỔ THEO DÕI VỆ SINH NHÀ THUỐC";
				frmBookCleaningPharmaciesPrint frmBookCleaningPharmaciesPrint = new frmBookCleaningPharmaciesPrint();
				this.viewer1.Document = frmBookCleaningPharmaciesPrint.Document;
				frmBookCleaningPharmaciesPrint.Run();
				return;
			}
			case "BookTemHum1Print":
			{
				this.Text = "SỔ THEO DÕI NHIỆT ĐỘ VÀ ĐỘ ẨM";
				frmBookTemHum1Print frmBookTemHum1Print = new frmBookTemHum1Print();
				this.viewer1.Document = frmBookTemHum1Print.Document;
				frmBookTemHum1Print.Run();
				return;
			}
			case "BookSellNotBill1":
			{
				this.Text = "SỔ BÁN THUỐC KHÔNG THEO ĐƠN";
				frmBookSellNotBill1Print frmBookSellNotBill1Print = new frmBookSellNotBill1Print();
				this.viewer1.Document = frmBookSellNotBill1Print.Document;
				frmBookSellNotBill1Print.Run();
				return;
			}
			case "BookExpiryDatePrint":
			{
				this.Text = "SỔ THEO DÕI HÀNG CẬN DATE";
				frmBookExpiryDatePrint frmBookExpiryDatePrint = new frmBookExpiryDatePrint();
				this.viewer1.Document = frmBookExpiryDatePrint.Document;
				frmBookExpiryDatePrint.Run();
				return;
			}
			case "BookSaleByBill":
			{
				this.Text = "SỔ BÁN THUỐC THEO ĐƠN";
				frmBookSaleByBillPrint frmBookSaleByBillPrint = new frmBookSaleByBillPrint();
				this.viewer1.Document = frmBookSaleByBillPrint.Document;
				frmBookSaleByBillPrint.Run();
				return;
			}
			case "BookWattingForProcess":
			{
				this.Text = "SỔ THEO DÕI HÀNG CHỜ XỬ LÝ";
				frmBookWattingForProcessPrint frmBookWattingForProcessPrint = new frmBookWattingForProcessPrint();
				this.viewer1.Document = frmBookWattingForProcessPrint.Document;
				frmBookWattingForProcessPrint.Run();
				return;
			}
			}
			frmBookSellNotBillPrint frmBookSellNotBillPrint = new frmBookSellNotBillPrint();
			this.viewer1.Document = frmBookSellNotBillPrint.Document;
			frmBookSellNotBillPrint.Run();
		}
		private void frmBookSellNotBillView_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}
	}
}
